<javascript>
  var myPromise = new Promise(function(resolve,reject)
  {setTimeout(function () {
    resolve("成功");
  }, 250)}
  ); myPromise.then(function(data){console.log(data)})
</javascript>;
